<?php
$new_width= 400;
$new_height= 302;
$path = $product_image_thumb.h($product->{PRODUCTS_IMAGE});
$path = rtrim($_SERVER['DOCUMENT_ROOT'], "/").$path;
list($width, $height, $type, $attr) = @getimagesize($path);
if($width&&$height){
	//$new_height = (int)($new_width*$height/$width);
	$new_width = (int)($new_height*$width/$height);
}
?> 
<link rel="stylesheet" href="<?=base_url()?>application/assets/styles/thickbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?=base_url()?>application/assets/scripts/thickbox.js"></script>
<div class="box_right"><strong>CHI TIẾT SẢN PHẨM</strong></div>
            <h4>SINO</h4>
            <div class="ma_sp_detail">Mã sản phẩm: <?=h($product->{PRODUCTS_NAME})?> 
                <span class="gia_sp_chitiet">Giá <?=($product->{PRODUCTS_PROMOTION_PRICE}>0)?'KM':''?>: <?=($product->{PRODUCTS_PROMOTION_PRICE}>0)?n3($product->{PRODUCTS_PROMOTION_PRICE}):n3($product->{PRODUCTS_PRICE})?> ₫</span>
                <span><input onclick="go_detail('<?=site_url('Chon-Mua')?>/SP/<?=$product->{PRODUCTS_PRODUCT_ID}?>')" class="btn_addcart_chitiet" value="Đặt mua" name="" type="button" /> </span>
            </div> 
            <div class="hinh_sp_chitiet"><a href="<?=$product_image.h($product->{PRODUCTS_IMAGE})?>" class="thickbox"><img src="<?=$product_image.h($product->{PRODUCTS_IMAGE})?>" width="<?=$new_width?>" height="<?=$new_height?>" alt="" title="<?=h($product->{PRODUCTS_NAME})?>" /></a></div>
            <div class="nd_sp_chitiet"><span><strong>Thông tin sản phẩm: </strong></span>
            <?=($product->{PRODUCTS_DESCRIPTION})?>
	
        
  </div>